package com.guys8.cemsbackend.utils.Others;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class ListUtil {

    public static <T> List<T> getOppoList(List<T> list){
        Collections.reverse(list);
        return list;
    }

    public static void main(String[] args) {
        List<Integer> list = new LinkedList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        System.out.println(list);
        list = getOppoList(list);
        System.out.println(list);
    }
}
